package com.jiantong.user.impl.dao;

import com.jiantong.user.model.CertificateStation;
import io.terminus.common.mysql.dao.MyBatisDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by mz on 22/9/17.
 *
 */
@Repository
public class CertificateStationDao extends MyBatisDao<CertificateStation>{

    /**
     * 查询一个市的所有的发证点
     * @param criteria 参数
     * @return List<CertificateStation>
     */
    public List<CertificateStation> findByProvinceIdAndCityId(Map<String , Object> criteria){
        return getSqlSession().selectList(sqlId("findByProvinceIdAndCityId"),criteria);
    }
}
